package top.z.work.module.system.controller.dict.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

@Data
@Accessors(chain = true)
@Schema(description = "系统管理 - 字典类型 VO")
public class SystemDictTypeCreateVO {

    @Length(min = 1, max = 100, message = "字典名称长度只能在1到100个字符之间")
    @NotBlank(message = "字典名称不能为空")
    @Schema(title = "字典名称", description = "字典名称", example = "性别")
    private String name;

    @Length(min = 1, max = 100, message = "字典编码长度只能在1到100个字符之间")
    @NotBlank(message = "字典编码不能为空")
    @Schema(title = "字典编码", description = "字典编码", example = "dict_sex")
    private String code;

}
